import request from '../index';
import { version } from "@/config";

// 获取验证码
export function  getVerifyCode(phoneNumber, purpose='login') {
    return request({
		url:`/ssop/api/member-v${version}/sms/code?phoneNumber=${phoneNumber}&purpose=${purpose}`,
        method: "get",
    })
}

// 验证码登录
export function verifyCode(data) {
    return request({
		url:`/ssop/api/member-v${version}/sms/verify`,
        method: "post",
		data,
    })
}